/* 全局样式 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 导航栏美化 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    z-index: 1050;
    position: relative;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #667eea !important; /* 使用背景渐变的起始色 */
}

/* 导航栏链接样式 */
.navbar-nav .nav-link {
    color: #764ba2 !important; /* 使用背景渐变的结束色 */
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important; /* 悬停时变为渐变起始色 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 下拉菜单项样式 */
.dropdown-menu {
    z-index: 1060;
    position: absolute;
}

.dropdown-menu .dropdown-item {
    color: #333 !important;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
}

/* 卡片美化 */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* 按钮美化 */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #85c1e9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f7dc6f 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #f1948a 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

/* 表格美化 */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.table {
    margin-bottom: 0;
    background: white;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    border-color: #e9ecef;
    vertical-align: middle;
}

/* 表单美化 */
.form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 警告框美化 */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #d6eaf8 0%, #ebf3fd 100%);
    color: #2874a6;
}

.alert-success {
    background: linear-gradient(135deg, #d5f4e6 0%, #eafaf1 100%);
    color: #27ae60;
}

.alert-danger {
    background: linear-gradient(135deg, #fadbd8 0%, #fdeaea 100%);
    color: #e74c3c;
}

/* 标题美化 */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* 图标美化 */
.fas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* 座位网格美化 */
.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.seat-item {
    padding: 15px;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.seat-available {
    background: linear-gradient(135deg, #d5f4e6 0%, #a8e6cf 100%);
    border: 2px solid #27ae60;
    color: #27ae60;
}

.seat-available:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

.seat-reserved {
    background: linear-gradient(135deg, #fadbd8 0%, #f1948a 100%);
    border: 2px solid #e74c3c;
    color: #e74c3c;
    cursor: not-allowed;
}

.seat-using {
    background: linear-gradient(135deg, #fef9e7 0%, #f7dc6f 100%);
    border: 2px solid #f39c12;
    color: #f39c12;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}